package com.xinongbest.spring_sign_in.entity.pojo;

public enum ResultCodeEnum {
    SUCCESS(200, "成功"),
    SYSTEM_ERROR(10000, "系统异常");


    /** 错误码 */
    private Integer code;

    /** 错误信息 */
    private String message;

    ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer code() {
        return this.code;
    }

    public String message() {
        return this.message;
    }
}
